package com.douyu.data.up.api;


import com.douyu.data.common.Result;
import com.douyu.data.up.entity.Up;
import com.douyu.data.up.model.UpListModel;
import com.douyu.data.up.model.UpModel;
import com.douyu.data.up.model.UpRequestModel;
import org.springframework.boot.configurationprocessor.json.JSONException;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.List;


@RequestMapping("/up")
public interface UpApi {

    @GetMapping("/upDetail")
    public Result<UpModel> getUpData(@RequestParam String id);

    @PostMapping("/addUp")
    public Result<String> addUp(@RequestParam String id) throws IOException, JSONException;

    @GetMapping("/uplist")
    public Result<UpListModel> getUpList(@RequestParam(value = "id") String id,
                                         @RequestParam(value = "name") String name,
                                         @RequestParam(value = "levelFrom") String levelFrom,
                                         @RequestParam(value = "levelTo") String levelTo,
                                         @RequestParam(value = "association") String association,
                                         @RequestParam(value = "online") String online,
                                         @RequestParam(value = "attentionFrom") String attentionFrom, @RequestParam(value = "attentionTo") String attentionTo,
                                         @RequestParam(value = "vipNumberFrom") String vipNumberFrom, @RequestParam(value = "vipNumberTo") String vipNumberTo,
                                         @RequestParam(value = "diamondFansFrom") String diamondFansFrom, @RequestParam(value = "diamondFansTo") String diamondFansTo,
                                         @RequestParam(value = "pageSize") Integer pageSize, @RequestParam(value = "pageNum") Integer pageNum);
}
